﻿using System;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "IIssueInsBook" here, you must also update the reference to "IIssueInsBook" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IIssueInsBook
    {
        [OperationContract]
        DataSet IssueInsBook_GetList(out int ItemCount, int _month, int _year, int branchID, int departmentID, string keyWord, int currentPage, int pageSize,string loaidoiso);

        [OperationContract]
        DataSet IssueInsBook_Report(int BranchID,int _month, int _year);

        [OperationContract]
        DataSet IssueInsBook_ReportSelectedIDs(int BranchID, int _month, int _year, string _selectedIDs);

        [OperationContract]
        int IssueInsBook_Insert(IssueInsBookInfo eInfo);

        [OperationContract]
        int IssueInsBook_CheckExist(int EmployeeID, DateTime _date);

        [OperationContract]
        bool IssueInsBook_Delete(int IssueInsBookID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class IssueInsBookInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        int _EmployeeID;
        [DataMember]
        public int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }

        DateTime _Date;
        [DataMember]
        public DateTime Date
        {
            get { return _Date; }
            set { _Date = value; }
        }
    }
}
